﻿<Window x:Class="Nomad.WebSync.Windows.Forms.Main"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Nomad WebSync" 
    Height="790" Width="480" 
    AllowsTransparency="False" 
    WindowStyle="ToolWindow" 
    ResizeMode="NoResize" 
    WindowStartupLocation="CenterScreen"     
    Icon="/Nomad.WebSync.Windows;component/WebSync.ico" FontSize="16">
    <Window.Background>
        <ImageBrush ImageSource="/Nomad.WebSync.Windows;component/Resources/Skin.png"/>
    </Window.Background>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="132"/>
            <RowDefinition Height="480"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="52"/>
            <ColumnDefinition Width="360"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <DockPanel Grid.Column="1" Grid.Row="1" Name="screenPanel">
            <DockPanel.Background>
                <ImageBrush ImageSource="/Nomad.WebSync.Windows;component/Resources/Background.jpg" />
            </DockPanel.Background>
            
            <StackPanel DockPanel.Dock="Top" Background="Black" Orientation="Horizontal" Height="36" VerticalAlignment="Top">
                <Image Name="startIcon"  Width="33" Height="33" Margin="2" Source="/Nomad.WebSync.Windows;component/WebSync.ico" MouseLeftButtonUp="startIcon_MouseLeftButtonUp" Cursor="Hand" IsHitTestVisible="False">
                    <Image.ContextMenu>
                        <ContextMenu FontSize="16">
                            <MenuItem Header="Calendar" />
                            <MenuItem Header="Contacts" />
                            <MenuItem Header="Notes" />
                            <MenuItem Header="Tasks" />
                        </ContextMenu>
                    </Image.ContextMenu>
                </Image>
                <Label Foreground="White">Nomad WebSync</Label>
            </StackPanel>
            <Frame DockPanel.Dock="Top" Name="mainFrame"  NavigationUIVisibility="Hidden" Source="Login.xaml" Navigated="mainFrame_Navigated"/>

            <Menu DockPanel.Dock="Bottom" Height="33" VerticalAlignment="Bottom" FontSize="16">
                <MenuItem Name="newMenuItem" Header="New" IsHitTestVisible="False">
                    <MenuItem Header="Appointment"/>
                    <MenuItem Header="Contact"/>
                    <MenuItem Header="Note"/>
                    <MenuItem Header="Task"/>
                </MenuItem>
                <MenuItem Header="System">
                    <MenuItem Name="newAccountMenuItem" Header="New Account" Click="newAccountMenuItem_Click"/>
                    <MenuItem Name="settingsMenuItem" Header="Settings" Click="settingsMenuItem_Click"/>
                    <Separator />
                    <MenuItem Name="exitMenuItem" Header="Exit" Click="exitMenuItem_Click"/>
                </MenuItem>
            </Menu>
        </DockPanel>
    </Grid>
</Window>
